package com.boboPlanet.user.listener;

import com.boboPlanet.user.component.PlanetUserSmsLoginEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @Description: TODO
 * @Author: mis_wu
 * @Date: 2023/7/29
 * @Company Listener
 **/
@Slf4j
@Component
public class PlanetUserSmsLoginListener implements ApplicationListener<PlanetUserSmsLoginEvent> {

    @Override
    public void onApplicationEvent(PlanetUserSmsLoginEvent event) {
        log.info("welcome use sms login");
        String phone = event.getPhone();
        //todo: 发送短信验证码

    }
}
